package com.wewins.fota.bean.po;

import com.wewins.fota.bean.bo.excel.*;
import com.wewins.fota.bean.bo.excel.column.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FotaLog implements DataSource {
    @ExcelColumn(value = "ID", width = 8, cellClazz = NumericColumn.class)
    private long id;

    @ExcelColumn(value = "IMEI", width = 14)
    private String imei;

    @ExcelColumn("产品名称")
    private String product;

    @ExcelColumn("当前版本")
    private String fromV;

    @ExcelColumn("目标版本")
    @Builder.Default
    private String toV = "-";

    @ExcelColumn(value = "用户IP", width = 15)
    private String reqServer;

    @ExcelColumn(value = "响应服务器", width = 25)
    private String respServer;

    @ExcelColumn(value = "计数", cellClazz = NumericColumn.class)
    private long count;

    @ExcelColumn(value = "创建时间", width = 19, cellClazz = TimeColumn.class)
    private long createTime;

    @ExcelColumn(value = "更新时间", width = 19, cellClazz = TimeColumn.class)
    private long updateTime;

    @ExcelColumn(value = "操作类型", cellClazz = FotaLogOperatorColumn.class)
    private int operator;

    @ExcelColumn(value = "下载类型", cellClazz = FotaLogDownloadTypeColumn.class)
    private int autoDownload;
}
